package com.vue.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vue.bean.R;
import com.vue.entity.DishesMenuEntity;
import com.vue.entity.ShoppingCartEntity;
import com.vue.entity.po.ShoppingCartPO;
import com.vue.entity.vo.ShoppingCartVO;

import java.util.List;

/**
 * <p>
 * 菜品购物车表 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-08-04
 */
public interface IShoppingCartService extends IService<ShoppingCartEntity> {

    List<ShoppingCartVO> selectList(ShoppingCartPO po);

    /**
     * 新增/修改菜品菜单
     * @param po
     * @return
     */
    R addOrEditShoppingCart(ShoppingCartEntity po);

    /**
     * 删除菜品菜单
     * @param id
     * @return
     */
    R deleteById(Long id);

    /**
     * 保存记录
     * @return
     */
    R saveToMy(Long userId);

    /**
     * 查询菜品菜单详情
     * @param id
     * @return
     */
    R selectById(Long id);
}
